module.exports = function (msec) {
    if(typeof msec !== 'number'){
        msec = Number(msec)
    }
    var theTime = Math.round(msec);// 秒
    var theTime1 = 0;// 分
    if(theTime > 60) {
        theTime1 = parseInt(theTime/60);
        theTime = parseInt(theTime%60);
    }
	var theTime2 = 0;// 时
	if(theTime1 > 60) {
	    theTime2 = parseInt(theTime1/60);
	    theTime1 = parseInt(theTime1%60);
	}
	var returnTime = ''
	if(theTime2>0){
		returnTime = (theTime2 > 9 ? theTime2:'0'+theTime2) + '时' + (theTime1 > 9 ? theTime1:'0'+theTime1) + '分' + (theTime > 9 ? theTime:'0'+theTime)+'秒';
	}else if(theTime1>0){
		returnTime = (theTime1 > 9 ? theTime1:'0'+theTime1)+'分' + (theTime > 9 ? theTime:'0'+theTime)+'秒'
	}else if(theTime>0){
		returnTime = (theTime > 9 ? theTime:'0'+theTime)+'秒'
	}
    return returnTime
}